import Vue from 'vue'
import Router from 'vue-router'
import home_page from '@/pages/home/Home.vue'
import city_page from '@/pages/city/City.vue'
import detail_page from '@/pages/detail/Detail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: home_page
    },
    {
      path:'/city',
      name:'City',
      component: city_page
    },
    {
      path:'/detail/:id',
      name:'Detail',
      component: detail_page
    }
  ]
})
